import React, { Component } from 'react'
import { useState } from 'react'

export default class child extends Component {
  state = {
    info: {
      date: '2020-12-4',
      name: '梨花',
      address: '广东'
    }
  }
  render () {
    return (
      <div>
        {this.props.header}
        {this.props.children}
        {this.props.bottom}
        {this.props.render(this.state.info)}
      </div>
    )
  }
}
